home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsIWSDLLoader.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  194 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIWSDLLoader.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIWSDLLoader_h__
  6. #define __gen_nsIWSDLLoader_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIWebServiceErrorHandler_h__
  14. #include "nsIWebServiceErrorHandler.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsIWSDLPort; /* forward declaration */
  22.  
  23. class nsIWSDLLoadListener; /* forward declaration */
  24.  
  25.  
  26. /* starting interface:    nsIWSDLLoader */
  27. #define NS_IWSDLLOADER_IID_STR "0458dac5-65de-11d5-9b42-00104bdf5339"
  28.  
  29. #define NS_IWSDLLOADER_IID \
  30.   {0x0458dac5, 0x65de, 0x11d5, \
  31.     { 0x9b, 0x42, 0x00, 0x10, 0x4b, 0xdf, 0x53, 0x39 }}
  32.  
  33. class NS_NO_VTABLE nsIWSDLLoader : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWSDLLOADER_IID)
  37.  
  38.   /* nsIWSDLPort load (in AString wsdlURI, in AString portName); */
  39.   NS_IMETHOD Load(const nsAString & wsdlURI, const nsAString & portName, nsIWSDLPort **_retval) = 0;
  40.  
  41.   /* void loadAsync (in AString wsdlURI, in AString portName, in nsIWSDLLoadListener listener); */
  42.   NS_IMETHOD LoadAsync(const nsAString & wsdlURI, const nsAString & portName, nsIWSDLLoadListener *listener) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSIWSDLLOADER \
  48.   NS_IMETHOD Load(const nsAString & wsdlURI, const nsAString & portName, nsIWSDLPort **_retval); \
  49.   NS_IMETHOD LoadAsync(const nsAString & wsdlURI, const nsAString & portName, nsIWSDLLoadListener *listener); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSIWSDLLOADER(_to) \
  53.   NS_IMETHOD Load(const nsAString & wsdlURI, const nsAString & portName, nsIWSDLPort **_retval) { return _to Load(wsdlURI, portName, _retval); } \
  54.   NS_IMETHOD LoadAsync(const nsAString & wsdlURI, const nsAString & portName, nsIWSDLLoadListener *listener) { return _to LoadAsync(wsdlURI, portName, listener); } 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSIWSDLLOADER(_to) \
  58.   NS_IMETHOD Load(const nsAString & wsdlURI, const nsAString & portName, nsIWSDLPort **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(wsdlURI, portName, _retval); } \
  59.   NS_IMETHOD LoadAsync(const nsAString & wsdlURI, const nsAString & portName, nsIWSDLLoadListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadAsync(wsdlURI, portName, listener); } 
  60.  
  61. #if 0
  62. /* Use the code below as a template for the implementation class for this interface. */
  63.  
  64. /* Header file */
  65. class nsWSDLLoader : public nsIWSDLLoader
  66. {
  67. public:
  68.   NS_DECL_ISUPPORTS
  69.   NS_DECL_NSIWSDLLOADER
  70.  
  71.   nsWSDLLoader();
  72.  
  73. private:
  74.   ~nsWSDLLoader();
  75.  
  76. protected:
  77.   /* additional members */
  78. };
  79.  
  80. /* Implementation file */
  81. NS_IMPL_ISUPPORTS1(nsWSDLLoader, nsIWSDLLoader)
  82.  
  83. nsWSDLLoader::nsWSDLLoader()
  84. {
  85.   /* member initializers and constructor code */
  86. }
  87.  
  88. nsWSDLLoader::~nsWSDLLoader()
  89. {
  90.   /* destructor code */
  91. }
  92.  
  93. /* nsIWSDLPort load (in AString wsdlURI, in AString portName); */
  94. NS_IMETHODIMP nsWSDLLoader::Load(const nsAString & wsdlURI, const nsAString & portName, nsIWSDLPort **_retval)
  95. {
  96.     return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98.  
  99. /* void loadAsync (in AString wsdlURI, in AString portName, in nsIWSDLLoadListener listener); */
  100. NS_IMETHODIMP nsWSDLLoader::LoadAsync(const nsAString & wsdlURI, const nsAString & portName, nsIWSDLLoadListener *listener)
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* End of implementation class template. */
  106. #endif
  107.  
  108.  
  109. /* starting interface:    nsIWSDLLoadListener */
  110. #define NS_IWSDLLOADLISTENER_IID_STR "c3681210-e191-11d8-949e-000393b6661a"
  111.  
  112. #define NS_IWSDLLOADLISTENER_IID \
  113.   {0xc3681210, 0xe191, 0x11d8, \
  114.     { 0x94, 0x9e, 0x00, 0x03, 0x93, 0xb6, 0x66, 0x1a }}
  115.  
  116. class NS_NO_VTABLE nsIWSDLLoadListener : public nsIWebServiceErrorHandler {
  117.  public: 
  118.  
  119.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWSDLLOADLISTENER_IID)
  120.  
  121.   /* void onLoad (in nsIWSDLPort port); */
  122.   NS_IMETHOD OnLoad(nsIWSDLPort *port) = 0;
  123.  
  124. };
  125.  
  126. /* Use this macro when declaring classes that implement this interface. */
  127. #define NS_DECL_NSIWSDLLOADLISTENER \
  128.   NS_IMETHOD OnLoad(nsIWSDLPort *port); 
  129.  
  130. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  131. #define NS_FORWARD_NSIWSDLLOADLISTENER(_to) \
  132.   NS_IMETHOD OnLoad(nsIWSDLPort *port) { return _to OnLoad(port); } 
  133.  
  134. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  135. #define NS_FORWARD_SAFE_NSIWSDLLOADLISTENER(_to) \
  136.   NS_IMETHOD OnLoad(nsIWSDLPort *port) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnLoad(port); } 
  137.  
  138. #if 0
  139. /* Use the code below as a template for the implementation class for this interface. */
  140.  
  141. /* Header file */
  142. class nsWSDLLoadListener : public nsIWSDLLoadListener
  143. {
  144. public:
  145.   NS_DECL_ISUPPORTS
  146.   NS_DECL_NSIWSDLLOADLISTENER
  147.  
  148.   nsWSDLLoadListener();
  149.  
  150. private:
  151.   ~nsWSDLLoadListener();
  152.  
  153. protected:
  154.   /* additional members */
  155. };
  156.  
  157. /* Implementation file */
  158. NS_IMPL_ISUPPORTS1(nsWSDLLoadListener, nsIWSDLLoadListener)
  159.  
  160. nsWSDLLoadListener::nsWSDLLoadListener()
  161. {
  162.   /* member initializers and constructor code */
  163. }
  164.  
  165. nsWSDLLoadListener::~nsWSDLLoadListener()
  166. {
  167.   /* destructor code */
  168. }
  169.  
  170. /* void onLoad (in nsIWSDLPort port); */
  171. NS_IMETHODIMP nsWSDLLoadListener::OnLoad(nsIWSDLPort *port)
  172. {
  173.     return NS_ERROR_NOT_IMPLEMENTED;
  174. }
  175.  
  176. /* End of implementation class template. */
  177. #endif
  178.  
  179. #define NS_WSDLLOADER_CID                             \
  180. { /* 0a5af577-a61e-4492-ba0e-dd3c7b657e18 */          \
  181.  0x0a5af577, 0xa61e, 0x4492,                          \
  182.  {0xba, 0x0e, 0xdd, 0x3c, 0x7b, 0x65, 0x7e, 0x18}}
  183. #define NS_WSDLLOADER_CONTRACTID "@mozilla.org/xmlextras/wsdl/wsdlloader;1"
  184. #define NS_ERROR_WSDL_NOT_WSDL_ELEMENT          NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 1)
  185. #define NS_ERROR_WSDL_SCHEMA_PROCESSING_ERROR   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 2)
  186. #define NS_ERROR_WSDL_BINDING_NOT_FOUND         NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 3)
  187. #define NS_ERROR_WSDL_UNKNOWN_SCHEMA_COMPONENT  NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 4)
  188. #define NS_ERROR_WSDL_UNKNOWN_WSDL_COMPONENT    NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 5)
  189. #define NS_ERROR_WSDL_LOADING_ERROR             NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 6)
  190. #define NS_ERROR_WSDL_RECURSIVE_IMPORT          NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 7)
  191. #define NS_ERROR_WSDL_NOT_ENABLED               NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 8)
  192.  
  193. #endif /* __gen_nsIWSDLLoader_h__ */
  194.